package com.fastloan.jn.mgt.application.basic.service;

import com.fastloan.jn.mgt.application.basic.enums.ApplicationStatus;
import com.fastloan.jn.mgt.application.basic.model.JnApplication;
import com.fastloan.jn.mgt.application.basic.model.vo.AppCustomerExt;
import com.fastloan.jn.mgt.application.basic.model.vo.AppExt;
import com.fastloan.jn.mgt.application.basic.model.vo.JnApplicationVo;
import com.kawins.base.BaseService;
import com.kawins.supers.table.manager.DataTable;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * Created by gelon on 2017/10/23.
 */
public interface JnApplicationService extends BaseService<JnApplication> {

    List<AppCustomerExt> appCustomerExt(Map<String,Object> map);


    List<JnApplicationVo> selectApplicationList(Map<String, Object> map);

    void uploadFile(String applicationId, MultipartFile[] files);

    List<JnApplicationVo> selectApplicationFileList(Map<String, Object> map);

    @Transactional
    boolean modifyApplicationStatus(ApplicationStatus applicationStatus, String applicationId);

}
